package com.cropdoctor.model.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * Description: 【 权限表 实体 】
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_permission")
@ApiModel(value = "SysPermissionPo",description = "用户权限Po")
public class SysPermissionPo {

    // ==================== FIELDS ====================

    /**
     * 权限ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "权限id", example = "1")
    private Integer id;

    /**
     * 权限CODE
     */
    @TableField(value = "permission_code")
    @ApiModelProperty(value = "权限码",example = "admin_all")
    private String permissionCode;

    /**
     * 权限名
     */
    @TableField(value = "permission_name")
    @ApiModelProperty(value = "权限名称",example = "admin权限")
    private String permissionName;

    // ==================== NON-PERSISTENT ====================

    // ==================== GET AND SET METHODS ====================

}
